projects
/
babl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20b2080
)
tests: Use rand when random is unavailable
author
Daniel Sabo
<DanielSabo@gmail.com>
Sun, 2 Feb 2014 07:13:28 +0000
(23:13 -0800)
committer
Daniel Sabo
<DanielSabo@gmail.com>
Mon, 3 Feb 2014 06:05:47 +0000
(22:05 -0800)
tests/babl_fish_path_fitness.c
patch
|
blob
|
history
diff --git
a/tests/babl_fish_path_fitness.c
b/tests/babl_fish_path_fitness.c
index 8480fc028bb324e492e0822a845a8c107c4e149e..bab17d699136315c7db2eb6bbba8dc15299bf969 100644
(file)
--- a/
tests/babl_fish_path_fitness.c
+++ b/
tests/babl_fish_path_fitness.c
@@
-6,6
+6,11
@@
#include <math.h>
#include "babl-internal.h"
+#ifndef HAVE_SRANDOM
+#define srandom srand
+#define random rand
+#endif
+
#define pixels 1024
int total_length = 0;
int total_cost = 0;